<template>
  <div class="list_menu diy_menu">
    <router-link
            to="/user_center/index"
            class="menu_item"
            :class="{ selected: this.$route.path=== '/user_center/index'}"
     >
      <span class="left_span">个人首页</span>
      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
    </router-link>
          <router-link
          to="/member_user/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/member_user/table'}"
          v-if="$check_action('/member_user/table','get')">
        <span class="left_span">会员用户</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/business_user/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/business_user/table'}"
          v-if="$check_action('/business_user/table','get')">
        <span class="left_span">商家用户</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/crowd_type/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/crowd_type/table'}"
          v-if="$check_action('/crowd_type/table','get')">
        <span class="left_span">人群类型</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
                  <router-link
          to="/business_type/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/business_type/table'}"
          v-if="$check_action('/business_type/table','get')">
        <span class="left_span">经营类型</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/store_information/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/store_information/table'}"
          v-if="$check_action('/store_information/table','get')">
        <span class="left_span">店铺信息</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/trial_appointment/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/trial_appointment/table'}"
          v-if="$check_action('/trial_appointment/table','get')">
        <span class="left_span">试用预约</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/maintenance_appointment/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/maintenance_appointment/table'}"
          v-if="$check_action('/maintenance_appointment/table','get')">
        <span class="left_span">维修预约</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
        	<router-link
		to="/logistics_delivery/table"
		class="menu_item"
		:class="{ selected: this.$route.path=== '/logistics_delivery/table'}"
        v-if="$check_action('/logistics_delivery/table')"
	>
		<span class="left_span">订单配送</span>
		<span class="right_span"><b-icon icon="house-fill"></b-icon></span>
	</router-link>
      <router-link
              to="/user/collect"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/user/collect'}"
              v-if="$check_action('/collect/list','get')">
        <span class="left_span">收藏</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
  </router-link>
	<router-link
	            to="/comment/table"
	            class="menu_item"
	            :class="{ selected: this.$route.path=== '/comment/table'}"
	            v-if="$check_action('/comment/table','get')">
	      <span class="left_span">评论管理</span>
	      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
	</router-link>
  </div>
</template>

<script>
import mixin from "@/mixins/page.js";
export default {
  mixins: [mixin],
  data() {
    return {
    };
  },
  mounted() {
  },
  methods: {
  },

  components: {
  },
};
</script>

<style scoped>
.list_menu {
  flex: 0 0 25%;
  border-bottom: 1px solid #eee;
}
.menu_item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-bottom: none;
  background-color: #fff;
}
.menu_item.selected {
  background-color: #000;
}
.menu_item.selected span {
  color: #fff ;
}
.content {
  flex: 0 0 74%;
}
</style>
